home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2325 / 2325.xpi / chrome / content / overlay.xul < prev    next >
Extensible Markup Language  |  2009-11-24  |  7KB  |  101 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE overlay SYSTEM "chrome://rss-ticker/locale/locale.dtd">
  3. <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  4.     <script type="application/x-javascript" src="chrome://rss-ticker/content/feed.class.js"></script>
  5.     <script type="application/x-javascript" src="chrome://rss-ticker/content/ticker.object.js"></script>
  6.     <script type="application/x-javascript" src="chrome://rss-ticker/content/bookmark-observer.js"></script>
  7.     <script type="application/x-javascript">
  8.         <![CDATA[
  9.  
  10.             window.addEventListener("load", function () { RSSTICKER.onload(); }, false);
  11.             window.addEventListener("unload", function () { RSSTICKER.unload(); }, false);
  12.             window.addEventListener("resize", function () { RSSTICKER.adjustSpacerWidth(); }, false);
  13.             window.addEventListener("DOMMouseScroll", function (event) { RSSTICKER.scrollTicker(event); }, false)
  14.             
  15.         ]]>
  16.     </script>
  17.     <stringbundleset id="stringbundleset">
  18.         <stringbundle id="RSSTICKER-bundle" src="chrome://rss-ticker/locale/locale.properties" />
  19.     </stringbundleset>
  20.     <commandset id="mainCommandSet">
  21.         <command id="rss-ticker_cmd_open" oncommand="document.popupNode.onContextOpen();" label="&cm.open;"/>
  22.         <command id="rss-ticker_cmd_openInNewWindow" oncommand="document.popupNode.onContextOpen('window');" label="&cm.openInNewWindow;"/>
  23.         <command id="rss-ticker_cmd_openInTab" oncommand="document.popupNode.onContextOpen('tab');" label="&cm.openInNewTab;"/>
  24.         <command id="rss-ticker_cmd_openAllInTabs" oncommand="RSSTICKER.openAllInTabs();" label="&cm.openAllInTabs;"/>
  25.         <command id="rss-ticker_cmd_openUnreadInTabs" oncommand="RSSTICKER.openAllInTabs(true);" label="&cm.openUnreadInTabs;"/>
  26.         <command id="rss-ticker_cmd_openFeedInTabs" oncommand="RSSTICKER.openAllInTabs(false, document.popupNode.feed);" label="&cm.openFeedInTabs;"/>
  27.         <command id="rss-ticker_cmd_openFeedUnreadInTabs" oncommand="RSSTICKER.openAllInTabs(true, document.popupNode.feed);" label="&cm.openFeedUnreadInTabs;"/>
  28.         <command id="rss-ticker_cmd_copyLinkTitle" oncommand="RSSTICKER.clipboard.copyString(document.popupNode.attributes['label'].value);" label="&cm.copyLinkTitle;"/>
  29.         <command id="rss-ticker_cmd_copyLinkURL" oncommand="RSSTICKER.clipboard.copyString(document.popupNode.href);" label="&cm.copyLinkURL;"/>
  30.         <command id="rss-ticker_cmd_refreshFeeds" oncommand="RSSTICKER.updateAllFeeds(); RSSTICKER.mouseOverFlag = false;" label="&cm.refreshFeeds;"/>
  31.         <command id="rss-ticker_cmd_manageFeeds" oncommand="window.openDialog('chrome://rss-ticker/content/options.xul','','chrome,titlebar,toolbar,centerscreen','manage-pane');" label="&cm.manageFeeds;"/>
  32.         <command id="rss-ticker_cmd_markAsRead" oncommand="document.popupNode.markAsRead(true);" label="&cm.markAsRead;"/>
  33.         <command id="rss-ticker_cmd_markFeedAsRead" oncommand="RSSTICKER.markAllAsRead(document.popupNode.feed);" label="&cm.markFeedAsRead;"/>
  34.         <command id="rss-ticker_cmd_markAllAsRead" oncommand="RSSTICKER.markAllAsRead();" label="&cm.markAllAsRead;"/>
  35.         <command id="rss-ticker_cmd_options" oncommand="window.openDialog('chrome://rss-ticker/content/options.xul','','chrome,titlebar,toolbar,centerscreen');" label="&options;" />
  36.         <command id="rss-ticker_cmd_disableTicker" oncommand="RSSTICKER.toggleDisabled();" label="&disableTicker;"/>
  37.     </commandset>
  38.     <popupset id="mainPopupSet">
  39.         <popup id="RSSTICKERItemCM">
  40.             <menuitem option="open" accesskey="&cm.open.key;" command="rss-ticker_cmd_open" />
  41.             <menuitem option="openInWindow" accesskey="&cm.openInNewWindow.key;" command="rss-ticker_cmd_openInNewWindow"/>
  42.             <menuitem option="openInTab" accesskey="&cm.openInNewTab.key;" command="rss-ticker_cmd_openInTab"/>
  43.             <menuseparator />
  44.             <menuitem option="openAllInTabs" command="rss-ticker_cmd_openAllInTabs"/>
  45.             <menuitem option="openUnreadInTabs" command="rss-ticker_cmd_openUnreadInTabs"/>
  46.             <menuitem option="openFeedInTabs" command="rss-ticker_cmd_openFeedInTabs"/>
  47.             <menuitem option="openFeedUnreadInTabs" command="rss-ticker_cmd_openFeedUnreadInTabs"/>
  48.             <menuseparator />
  49.             <menuitem option="copyLinkTitle" accesskey="&cm.copyLinkTitle.key;" command="rss-ticker_cmd_copyLinkTitle"/>
  50.             <menuitem option="copyLinkURL" accesskey="&cm.copyLinkURL.key;" command="rss-ticker_cmd_copyLinkURL"/>
  51.             <menuseparator />
  52.             <menuitem option="refreshFeeds" accesskey="&cm.refreshFeeds.key;" command="rss-ticker_cmd_refreshFeeds"/>
  53.             <menuitem option="manageFeeds" accesskey="&cm.manageFeeds.key;" command="rss-ticker_cmd_manageFeeds"/>
  54.             <menuseparator />
  55.             <menuitem option="markAsRead" accesskey="&cm.markAsRead.key;" command="rss-ticker_cmd_markAsRead"/>
  56.             <menuitem option="markFeedAsRead" accesskey="&cm.markFeedAsRead.key;" command="rss-ticker_cmd_markFeedAsRead"/>
  57.             <menuitem option="markAllAsRead" accesskey="&cm.markAllAsRead.key;" command="rss-ticker_cmd_markAllAsRead"/>
  58.             <menuseparator />
  59.             <menuitem option="options" command="rss-ticker_cmd_options"/>
  60.             <menuitem option="disableTicker" command="rss-ticker_cmd_disableTicker"/>
  61.         </popup>
  62.         <popup id="RSSTICKERCM">
  63.             <menuitem option="openAllInTabs" command="rss-ticker_cmd_openAllInTabs"/>
  64.             <menuitem option="openUnreadInTabs" command="rss-ticker_cmd_openUnreadInTabs"/>
  65.             <menuseparator />
  66.             <menuitem option="refreshFeeds" accesskey="&cm.refreshFeeds.key;" command="rss-ticker_cmd_refreshFeeds"/>
  67.             <menuitem option="manageFeeds" accesskey="&cm.manageFeeds.key;" command="rss-ticker_cmd_manageFeeds"/>
  68.             <menuseparator />
  69.             <menuitem option="markAllAsRead" accesskey="&cm.markAllAsRead.key;" command="rss-ticker_cmd_markAllAsRead"/>
  70.             <menuseparator />
  71.             <menuitem option="options" command="rss-ticker_cmd_options"/>
  72.             <menuitem option="disableTicker" command="rss-ticker_cmd_disableTicker"/>
  73.         </popup>
  74.         <popup id="RSSTICKERButtonCM">
  75.             <menuitem option="refreshFeeds" accesskey="&cm.refreshFeeds.key;" command="rss-ticker_cmd_refreshFeeds"/>
  76.             <menuitem option="manageFeeds" accesskey="&cm.manageFeeds.key;" command="rss-ticker_cmd_manageFeeds"/>
  77.             <menuseparator />
  78.             <menuitem option="options" command="rss-ticker_cmd_options"/>
  79.         </popup>
  80.         <tooltip id="RSSTICKERTooltip" noautohide="true" orient="vertical" onpopupshowing="return RSSTICKER.fillInTooltip(document.tooltipNode, this);">
  81.             <hbox align="center">
  82.                 <image id="RSSTICKERTooltipImage" style="vertical-align: middle; margin-left: 1ex; margin-right: 1ex;"/>
  83.                 <vbox>
  84.                     <label style="font-weight: bold;" id="RSSTICKERTooltipFeedName" crop="end"/>
  85.                     <label style="text-decoration: underline;" id="RSSTICKERTooltipName" crop="end"/>
  86.                     <label id="RSSTICKERTooltipURL" crop="end"/>
  87.                 </vbox>
  88.             </hbox>
  89.             <groupbox id="RSSTICKERTooltipSummaryGroupbox" style="width: 100%; height: 100%;">
  90.                 <caption label="&tt.summary;" style="background-color: #ffffff;" />
  91.                 <description id="RSSTICKERTooltipSummary"></description>
  92.             </groupbox>
  93.         </tooltip>
  94.         <tooltip id="RSSTICKERLoadingNoticeTooltip" noautohide="true" orient="vertical">
  95.             <description id="RSSTICKERLoadingNoticeText"></description>
  96.         </tooltip>
  97.     </popupset>
  98.     <toolbarpalette id="BrowserToolbarPalette">
  99.         <toolbarbutton id="RSSTICKER-button" contextmenu="RSSTICKERButtonCM" tooltiptext="&toggleTicker;" class="toolbarbutton-1" label="&extension.title;" oncommand="RSSTICKER.toggleDisabled();" />
  100.     </toolbarpalette>
  101. </overlay>